package lab01;

/**
 * Created by V555 on 2017/10/16.
 */
public class Test11 {
    public static void main(String[] args) {
        int i,j=0;
        for (i=2;i<=100;i++){
            if ((i%2!=0&&i%3!=0&&i%5!=0&&i%7!=0)||i==2||i==3||i==5||i==7){
                System.out.print("  "+i);
                j++;
                if (j%5==0){
                    System.out.println();
                }
            }
        }
    }
}


